home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 2 / ACE CD 2.iso / FILES / UTILS / HSBASIC2.DMS / in.adf / Install_HiSoft_Basic_2 < prev    next >
Encoding:
Text File  |  1994-05-12  |  36.5 KB  |  167 lines

  1. ;HiSoft Basic 2 Installation script - Richard
  2. ;12 May 1994 15:00:52
  3. ;Copyright © 1994 HiSoft
  4. (set @U "libs:asl.library")(set @AE "SYS:Old/Libs")(set @AG "RAM:Boot/libs/asl.library")(set @AJ "libs:IFFParse.library")(set @X " is %s\n\nDo you want to overwrite the library with the new version")
  5. (set @A@ " is too old to work with HiSoft Basic 2. The installer can either")(set @AA " overwrite the old version or, you can let the installer create a new")(set @AC "Overwrite")(set @AD "Move to SYS:Old/Libs")
  6. (set @AQ "RAM:Boot/libs/IFFParse.library")(set @AV "libs:hbasic2.library")(set @BS "Libs:hbasic2.library")(set @D "exec.library")(set @CO "\n Welcome to the installation utility for \nHiSoft Basic 2\n")
  7. (set @CR "\n\nIf you want to update or add some new files to your installation")(set @CS " you must select either the Intermediate or Expert option.")(set @CZ "T:Install")(set @CX "T:Format2.0")(set @D@ "T:Format1.3")(set @CY "T:Install2.0")
  8. (set @DA "T:Install1.3")(set @DE "HBasic2:HBasic2")(set @EJ "Ram:HB2Includes.Lha")(set @F@ "Compiler...")(set @ER "\"-iafFw=%s\"")(set @EP "Ram:HB2Programs.Lha")(set @EO "\"-afFw=%s\"")(set @FB "5 minutes (A500 unexpanded)\n\n")
  9. (set @FC "1 minute (A1200/A4000 with fast RAM)")(set @GD "HB2Includes:")(set @GE "Ram:HB2Icons.Lha")(set @GZ "Changing icon colors from 2.0 to 1.3")(set @HC "~(#?.info)")(set @HH "HB2Install:")(set @IH "Workbench")(set @IT "RAM:Boot/%s")
  10. (set @IX "Prefs/Env-Archive")(set @IW "RAM:Boot/Prefs/Env-Archive")(set @IY "Disk.info")(set @JX "RAM:Boot/")(set @LN "SYS:Prefs/Env-Archive")(set @HV "HiSoftBasic2")(set @KX "Path HBasic2: Add\n")(set @KV ";Begin HiSoft Basic 2\n")
  11. (set @KW "Assign HBasic2: HiSoftBasic2:HBasic2\n")(set @LD ";End HiSoft Basic 2\n")(set @KU "HiSoftBasic2:S/User-Startup")(set @LG "HiSoftBasic2:HBasic2/HBasic.Prefs")(set @LH "DEBUGGER=HiSoftBasic2:HBasic2/MonAm\n")
  12. (set @LI "COMPILER=HiSoftBasic2:HBasic2/HBC\n")(set @LJ "HiSoftBasic2:HBasic2/HBC.Opts")(set @LK "INCPATH HB2Includes:BH\n")(set @LL "LIBPATH HB2Includes:BMAP\n")(set @LS "Place HiSoft 2 Basic paths/assigns in user-startup")
  13. (set @LT "Assign HBasic2: \"%s\"\n")(set @LU "Assign BH: \"%s/BH\"\n")(set @LV "Assign BMAP: \"%s/BMAP\"\n")(set @LW "%s/HBasic.Prefs")(set @LX "DEBUGGER=HBasic2:MonAm\n")(set @LY "COMPILER=HBasic2:HBC\n")(set @LZ "%s/HBC.Opts")
  14. (set @M@ "INCPATH BH:\n")(set @MA "LIBPATH BMAP:\n")(set @LP "assign ENVARC: remove\n")(set @LQ "assign ENVARC: sys:prefs/env-archive ;2.0 style environment setup\n")(set @MP " in any drive")(set @HW "HB2Includes")(set @DW "HB2Examples1.3.Lha")
  15. (set @DX "HB2Examples2.0.Lha")(set @DY "HB2Examples2.1.Lha")(set @DZ "HB2Examples3.0.Lha")(set @HF "HiSoftBasic2:HBasic2")(onerror(CLEANUP)(user 2)(if (> @ioerr 0)(Message ("\n\nA Dos Error %ld has occured" @ioerr)
  16. "\n\n\n\nPlease consult Appendix F in your HiSoft Basic 2 manual" " for further details.")))(@default-dest "SYS:")(set default-user @user-level)(set WBVer (< 2424832 (getversion @D (resident))))
  17. (if (or (= (getassign "sys") "RAM DISK:") (= (getassign "sys") "Ram Disk:"))(set default-media 0)(set default-media 1))(Procedure PARTS(set components(askoptions(Prompt "\nWhich parts of the package do you want to install")
  18. (help (cat "Select from the list, the parts of the package you wish to" " install. If you are installing for the first time we would recommend" " that you install all parts of the package.\n\n" @askoptions-help))(choices "Compiler files"
  19. "Editor files" "Debugger files" "Include files" "Example files" "Icon files" "Library files" "Extra files")(default -1))))(PROCEDURE ENVARCHIVE(set envarc 1)(if (= WBVer 0)((set Envarc (getassign "ENVARC"))(if (<> Envarc "")(set envarc 1)
  20. (set envarc 0)))))(PROCEDURE CHECKASL(set OLDASL 0)(If (AND (> media 0) (= WBVer 1) (IN Components 6))((Working "\n\nScanning system for a version of the ASL library\n\n" "that is compatible with HiSoft Basic 2\n\nHold a moment...")
  21. (if (= (exists @U) 1)(if (< (getversion @U) 2490404)(Set OLDASL 1)(Set OLDASL 0)))(if (= OLDASL 1)((set CURRENTVER(getversion @U))(set INSTALLVER 2490404)
  22. (set CURRENTASLVERSTRING (cat (/ CURRENTVER 65536) "." (- CURRENTVER (* (/ CURRENTVER 65536) 65536))))(set INSTALLASLVERSTRING (cat (/ INSTALLVER 65536) "." (- INSTALLVER (* (/ INSTALLVER 65536) 65536))))(set REPLACEASL(askbool
  23. (Prompt "\n\nThe version of the ASL library you have installed is incompatible" " with HiSoft Basic 2, the version required is 38.6 the version installed"(@X CURRENTASLVERSTRING) " or move the current asl library to a new drawer SYS:Old/Libs")
  24. (help "The version of the ASL library installed on this machine"  @A@ @AA " drawer \"SYS:Old/Libs\" to which the old ASL library will be copied to.")(Choices @AC "Move to SYS:Old/Libs")(default 1)))(if (= REPLACEASL 0)((if (<> (exists "SYS:Old") 2)
  25. (makedir "SYS:Old" (infos)))(if (<> (exists @AE) 2)(makedir @AE (infos)))(copyfiles(source "Libs:asl.library")(dest @AE)(nogauge)(optional "askuser"))))))))(If (AND (= media 0) (= WBVer 1) (IN Components 6))(if (= (exists @AG) 1)
  26. (if (< (getversion @AG) 2490404)(Set OLDASL 1)(Set OLDASL 0))(Set OLDASL 1))))(PROCEDURE CHECKIFF(set OLDIFF 0)(If (AND (> media 0) (IN Components 6))((Working "\n\nScanning system for a version of the IFFParse library\n\n"
  27. " that is compatible with HiSoft Basic 2\n\nHold a moment...")(if (= (exists @AJ) 1)(if (< (getversion @AJ) 2424833)(Set OLDIFF 1)(Set OLDIFF 0)))(if (= OLDIFF 1)((set CURRENTVER(getversion @AJ))(set INSTALLVER 2424833)
  28. (set CURRENTIFFVERSTRING (cat (/ CURRENTVER 65536) "." (- CURRENTVER (* (/ CURRENTVER 65536) 65536))))(set INSTALLIFFVERSTRING (cat (/ INSTALLVER 65536) "." (- INSTALLVER (* (/ INSTALLVER 65536) 65536))))(set REPLACEIFF(askbool
  29. (Prompt "\n\nThe version of the IFFParse library you have installed is incompatible"(" with HiSoft Basic 2, the version required is %s the version installed" INSTALLIFFVERSTRING)(@X CURRENTIFFVERSTRING)
  30. " or move the current IFFParse library to a new drawer SYS:Old/Libs")(help "The version of the IFFParse library installed on this machine" @A@ @AA " drawer \"SYS:Old/Libs\" to which the old IFFParse library will be copied to.")
  31. (Choices @AC "Move to SYS:Old/Libs")(default 1)))(if (= REPLACEIFF 0)((if (<> (exists "SYS:Old") 2)(makedir "SYS:Old" (infos)))(if (<> (exists @AE) 2)(makedir @AE (infos)))(copyfiles(source "Libs:IFFParse.library")(dest @AE)(nogauge)
  32. (optional "askuser"))))))))(If (AND (= media 0) (IN Components 6))(if (= (exists @AQ) 1)(if (< (getversion @AQ) 2424833)(Set OLDIFF 1)(Set OLDIFF 0))(Set OLDIFF 1))))(PROCEDURE CHECKHB2LIB(user 2)(set HB2LIBV (getversion "HB2Install:HB2LIBV"))
  33. (If (AND (> media 0) (IN Components 6))((Working "\n\nScanning system for a previous version of the" "\n\nHiSoft Basic library that is\n\ncompatible with this" " HiSoft Basic 2\n\nHold a moment...")(if (= (exists @AV) 1)((set CURRENTVER
  34. (getversion @AV))(set INSTALLVER HB2LIBV)(set CURRENTLIBVERSTRING (cat (/ CURRENTVER 65536) "." (- CURRENTVER (* (/ CURRENTVER 65536) 65536))))(set INSTALLLIBVERSTRING (cat (/ INSTALLVER 65536) "." (- INSTALLVER (* (/ INSTALLVER 65536) 65536))))
  35. (Set HB2CURRENTLIBVERSION (/ (getversion @AV) 65536))(Set HB2INSTALLLIBVERSION (/ HB2LIBV 65536))(if (<> HB2INSTALLLIBVERSION HB2CURRENTLIBVERSION)(set NEWLIB 1)(set NEWLIB 0))(if (AND (=  NEWLIB 0) (< (getversion @AV) HB2LIBV))(Set OLDLIB 1)
  36. (Set OLDLIB 0))))(if (= NEWLIB 1)((set REPLACELIB(askbool(Prompt "Library version warning see Help for more details." "\n\nThe version of the HiSoft Basic 2 library installed on this" " machine is at least one version or more different from the"
  37. " version you are about to install. Installing the HiSoft Basic 2" " library on the installation disk will stop any program created" " with the library installed on this machine from running."
  38. (" The library version required for this installation is %ld" HB2INSTALLLIBVERSION)(" The library version on this machine is %ld" HB2CURRENTLIBVERSION) " Do you want to overwrite the library on this machine with the"
  39. " installation version or move the currently installed library" " to a new drawer SYS:Old/Libs")(help "The version of the HiSoft Basic library you are about to" " install is a full version different to the library on this machine."
  40. ("\n\ni.e. the library on this machine is a version %ld library" HB2CURRENTLIBVERSION)(" and the installation library is a version %ld library." HB2INSTALLLIBVERSION)
  41. (" This means that programs created with the version %ld library" HB2CURRENTLIBVERSION)(" will not work with the version %ld library and vice versa." HB2INSTALLLIBVERSION) "\n\nThe only way to make your programs work with the \"new\" library is"
  42. " recompile your code with the relevant compiler/library combination" "\n\nWould you therefore like the installer to overwrite the current" " library with installation library or would you like the installer"
  43. " to create a new drawer \"SYS:Old/Libs\" to which the \"old\" library will" " be copied to.")(Choices @AC "Move to SYS:Old/Libs")(default 1)))(if (= REPLACELIB 0)((if (<> (exists "SYS:Old") 2)(makedir "SYS:Old" (infos)))(if (<> (exists @AE) 2)
  44. (makedir @AE (infos)))(copyfiles(source @BS)(dest @AE)(optional "askuser")(nogauge))))))(if (= OLDLIB 1)((set REPLACELIB(askbool(Prompt "\n\nThe version of the HiSoft Basic 2 library you have installed is incompatible"
  45. (" with this version of HiSoft Basic 2, the version required is %s, the version installed" INSTALLLIBVERSTRING)(@X CURRENTLIBVERSTRING) " or move the current HBasic2 library to a new drawer SYS:Old/Libs")
  46. (help "The version of the HBasic2 library installed in your machine" @A@ @AA " drawer \"SYS:Old/Libs\" to which the old HBasic2 library will be copied to.")(Choices @AC "Move to SYS:Old/Libs")(default 1)))(if (= REPLACELIB 0)(
  47. (if (<> (exists "SYS:Old") 2)(makedir "SYS:Old" (infos)))(if (<> (exists @AE) 2)(makedir @AE (infos)))(copyfiles(source @BS)(dest @AE)(optional "askuser")(nogauge))))))))(if (= media 0)(Set OLDLIB 1))(user default-user))(Procedure EXAMPLECHOICE
  48. (if (IN Components 4)((if (= WBVer 0)(set mask 1))(if (= WBVer 1)((if (= WBVer 1)(set mask 3))(if (AND (> media 0) (>= (getversion "libs:version.library") 2490368)(< (getversion @D (resident)) 2555904))(set mask 7))
  49. (if (> (getversion @D (resident)) 2555904)(set mask 15))))(set EXAMPLELIST(askoptions(Prompt "\nWhich examples do you want to install")(help (cat "The examples available fall under 4 different classifications"
  50. " those which are compatible under Workbench:-\n\n1.3 and upwards\n" "2.0 and upwards\n2.1 and upwards\n3.0 and upwards\n" "\nIf therefore you have an A500 running Workbench 1.3 you will" " not be able to run the 3.0 examples, you may however want"
  51. " to install the examples anyway so you can look at some of the" " programming techniques used.\n\n" @askoptions-help))(choices "1.3 Examples" "2.0 Examples" "2.1 Examples" "3.0 Examples")(default mask))))))(PROCEDURE MEDIA(user 2)(set Media
  52. (Askchoice(Help @askchoice-help)(Prompt "Select installation you require?")(Choices "Floppy disk" "Hard disk" "Hard disk and a Floppy disk set")(Default default-media)))(user default-user))(PROCEDURE INTRODUCTION(user 2)(if (> media 0)(message @CO
  53. "\n\nTo ensure proper installation on a hard disk, it is important that" " you boot from your hard drive before using the installation utility!" @CR @CS))(if (= media 0)(message @CO "\nIt is important that you boot from your floppy drive with the "
  54. "HiSoft Basic 2 installation disk before using the installation utility!" @CR @CS))(user default-user))(PROCEDURE COPYTOOLS(if (<> Components 0)((if (= Media 0)(
  55. (Working "\n\nSetting up installation files\n\nfor a floppy disk installation\n\nhold a moment")(copyfiles(source "HB2Install:Tools")(dest "T:")(nogauge)(pattern "#?")(safe))(if (= WBVer 1)((rename (@CX) ("T:Format") (safe))
  56. (rename (@CY) ("T:Install") (safe)))((rename (@D@) ("T:Format") (safe))(rename (@DA) ("T:Install") (safe))))(delete @CX)(delete @D@)(delete @CY)(delete @DA)))(if (> Media 0)(
  57. (Working "\n\nSetting up installation files\n\nfor a hard disk installation\n\nhold a moment")(set n 0)(while (set FILETOCOPY (select n "Lhex" ""))((set n (+ n 1))(copyfiles(source "HB2Install:Tools/")(dest "T:")(nogauge)(pattern FILETOCOPY)(safe)))
  58. ))))))(PROCEDURE LOCATIONS(user 2)(if (OR (IN Components 0) (IN Components 1) (IN Components 2))((Working "\nScanning system for a previous installation\n\nhold a moment")(if (<> (getassign "HBasic2" "a") "")(
  59. (Set HB2DefaultDest (Expandpath "HBasic2:"))(if (= (exists @DE) 1)((set CURRENTVER(getversion @DE))(set INSTALLVER(getversion "HB2Install:HBVersion"))(set CURRENTVERSTRING (cat (/ CURRENTVER 65536) "." (- CURRENTVER (* (/ CURRENTVER 65536) 65536))))
  60. (set INSTALLVERSTRING (cat (/ INSTALLVER 65536) "." (- INSTALLVER (* (/ INSTALLVER 65536) 65536))))(SET VERSTRING (cat ("\n\nVersion %s of HiSoft Basic 2 \n" CURRENTVERSTRING) "is already installed on your machine, \nthe version you are about"
  61. (" to install is %s \n\n" INSTALLVERSTRING)))(if (< INSTALLVER CURRENTVER)(Message (cat VERSTRING "Do you want to install an older version?")))(if (> INSTALLVER CURRENTVER)(Message (cat VERSTRING "Do you want to install the new version?")))
  62. (if (= INSTALLVER CURRENTVER)(Message (cat VERSTRING "Install the same version?"))))))(Set HB2DefaultDest @default-dest))))(If (OR (IN Components 0) (IN Components 1) (IN Components 2) (IN Components 7))(if (<> (getassign "HBasic2" "a") "")(
  63. (set HB2_Dest(askdir(prompt "Install HiSoft Basic 2 files in the same drawer\nas the old version?")(help @askdir-help)(default HB2DefaultDest))))((set HB2_Dest(tackon(askdir(prompt "Select the location for the HiSoft Basic 2 Drawer\n"
  64. "contains compiler, editor, debugger etc.")(help @askdir-help)(default HB2DefaultDest)) "HBasic2"))(if (<> (exists HB2_Dest) 2)(makedir HB2_Dest (infos)))))(set HB2_Dest HB2DefaultDest))(user default-user)(if (IN Components 3)(set BHBMAP_Dest(askdir
  65. (prompt "Select the location for the BMAP and BH files.")(help @askdir-help)(default HB2_Dest))))(if (IN Components 4)(set Examples_Dest(askdir(prompt "Select the location for the examples drawer.")(help @askdir-help)(default HB2_Dest))))
  66. (if (= Envarc 1)(set Icons_Dest (expandpath "ENVARC:")))(if (AND (= Envarc 1) (= default-user 2) (IN Components 5))(set Icons_Dest(askdir(prompt "Select the location for the HiSoft Basic 2 icons - normally Env-Archive.")(help @askdir-help)
  67. (default (expandpath "ENVARC:")))))(if (IN Components 6)(set HB2Libs_Dest (expandpath "LIBS:")))(if (AND (IN Components 6) (= default-user 2))(set HB2Libs_Dest(askdir(prompt "Select the location for the HiSoft Basic 2 library - normally LIBS:")
  68. (help @askdir-help)(default (expandpath "LIBS:"))))))(Procedure LHACOPY1(if (OR (IN Components 0) (IN Components 1)(IN Components 2) (IN Components 6) (IN Components 7))((REQUESTINSTALL)(copyfiles(source "HB2Install:HB2Programs.Lha")(dest "Ram:")
  69. (optional "force"))))(if (IN Components 5)((REQUESTINSTALL)(copyfiles(source "HB2Install:HB2Icons.Lha")(dest "Ram:")(optional "force")))))(Procedure LHACOPY2(if (IN Components 3)((REQUESTINSTALL)(copyfiles(source "HB2Install:HB2Includes.Lha")
  70. (dest "Ram:"))))(if (IN Components 4)((REQUESTINSTALL)(set n 0)(while (set EXAMPLEFILE (select n @DW @DX @DY @DZ ""))((if (IN EXAMPLELIST n)(copyfiles (source ("HB2Install:%s" EXAMPLEFILE)) (dest "Ram:") (optional "force")))(set n (+ n 1)))))))
  71. (PROCEDURE EXTRACTFILES(DISKSPACE)(set Param2 "x")(Working ("\n\nUncompressing %s\n\n\n" Param0))(Run ("T:lhex %s %s %s %s" Param1 Param2 Param3 Param4)))(PROCEDURE DISKSPACE(user 2)(if (> Media 0)((Set Space (Getdiskspace Space_Dest))
  72. (PROCEDURE TESTSPACE(Set Space (Getdiskspace Space_Dest))(set testdiskspace 0)(if (< Space ReqSpace)(set testdiskspace(askbool(Prompt ("\nNot enough disk space to extract %s\n" param0)
  73. ("\nSpace required %ld\n\n\n Space available %ld\n\n" ReqSpace Space) "Delete some files and select Retry to see if there is sufficient space" " or select Ignore to carry on regardless.")
  74. (help "\nThere is not enough disk space to extract the files.\n\n" "Delete some files and select Retry to see if there is enough space" " or Ignore to carry on regardless.")(choices "Retry" "Ignore")))))(TESTSPACE)(While (= testdiskspace 1)
  75. (TESTSPACE))))(user default-user))(PROCEDURE EXTRACTINCLUDES(set Param3 @EJ)(if (IN Components 3)((set Space_Dest BHBMAP_Dest)(if (= media 0)(set param0 (cat "Include files \n\nThis could take:-\n\n" "20 minutes (A500 not expanded)\n\n"
  76. "3 minutes (A1200/A4000 with fast RAM)"))(set param0 "Include files...."))(set Param1 (@EO BHBMAP_Dest))(set Param4 "")(set reqspace 370000)(if (= media 0)(REQUESTINCLUDES))(EXTRACTFILES)(delete @EJ (optional "force") (safe)))))
  77. (PROCEDURE EXTRACTPROGRAMS(set Param3 @EP)(if (IN Components 6)((set Space_Dest HB2Libs_Dest)(if (= WBVer 0)(set OLDASL 1))(set param0 "Library files...")(set Param1 (@ER HB2Libs_Dest))(if (= WBVer 0)((set param0 "ARP library")
  78. (set Param4 "arp.library")(set reqspace 17100)(EXTRACTFILES)))(if (= OLDIFF 1)((set param0 "IFFParse library")(set Param4 "iffparse.library")(set reqspace 7688)(EXTRACTFILES)))(if (AND (= WBVer 1) (= OLDASL 1))((set param0 "ASL library")
  79. (set Param4 "asl.library")(set reqspace 40720)(EXTRACTFILES)))(set param0 "HiSoft Basic 2 library")(set Param4 "hbasic2.library")(set reqspace 53548)(EXTRACTFILES)))(if (IN Components 0)((set Space_Dest HB2_Dest)(if (= media 0)(set param0 (cat @F@
  80. "\n\nThis will take aproximately:-\n\n" @FB @FC))(set param0 @F@))(set Param1 (@ER HB2_Dest))(set Param4 "HBC*")(set reqspace 190000)(EXTRACTFILES)))(if (IN Components 2)((set Space_Dest HB2_Dest)(set param0 "Debugger files...")
  81. (set Param1 (@ER HB2_Dest))(set Param4 "MonAm* Debug*")(set reqspace 51500)(EXTRACTFILES)))(if (IN Components 7)((set Space_Dest HB2_Dest)(set param0 "Extra files...")(set Param1 (@ER HB2_Dest))(set Param4 "Read* Conten* IFFParse.Lic*")
  82. (set reqspace 16500)(EXTRACTFILES)))(if (IN Components 1)((If (= WBVer 1)((set Space_Dest HB2_Dest)(set Param1 (@ER HB2_Dest))(set param0 "2.x/3.x editor files...")(set Param4 "2.x/HBasic2*")(set reqspace 79244)(EXTRACTFILES))(
  83. (set Space_Dest HB2_Dest)(set Param1 (@ER HB2_Dest))(set param0 "1.3 editor files...")(set Param4 "1.x/HBasic2*")(set reqspace 90848)(EXTRACTFILES)))))(if (= (exists "RAM:HB2Programs.Lha") 1)(delete @EP (optional "force") (safe))))
  84. (PROCEDURE EXTRACTEXAMPLES(if (IN Components 4)((set Space_Dest Examples_Dest)(set Param4 "")(set Param1 (@EO Examples_Dest))(set n 0)(while (set param3 (select n "Ram:HB2Examples1.3.Lha" "Ram:HB2Examples2.0.Lha" "Ram:HB2Examples2.1.Lha"
  85. "Ram:HB2Examples3.0.Lha" ""))(if (= media 0)(set param0 (select n(cat "\n\n1.3 example files\n\nThis will take approximately\n\n" "10 minutes (A500 unexpanded)\n\n" " 2 minutes (A1200/A4000 with fast RAM)")
  86. (cat "\n\n2.0 example files\n\nThis will take approximately\n\n" @FB @FC)(cat "\n\n2.1 example files\n\nThis will take approximately\n\n" "1 minute (A500 unexpanded)\n\n" "10 seconds (A1200/A4000 with fast RAM)")
  87. (cat "\n\n3.0 example files\n\nThis will take approximately\n\n" "3 minutes (A500 unexpanded)\n\n" "30 seconds (A1200/A4000 with fast RAM)") ""))(set param0 (select n "\n\n1.3 example files..." "\n\n\n2.0 example files..."
  88. "\n\n\n\n2.1 example files..." "\n\n\n\n\n3.0 example files..." "")))(set reqspace (select n 130000 55000 13000 31000 ""))(if (AND (= WBVer 0) (= media 0) (= n 0) (IN EXAMPLELIST 0))((set Examples_Dest @GD)(set Param1 (@EO Examples_Dest))
  89. (REQUESTINCLUDES)))(if (AND (= WBVer 0) (= media 0) (<> n 0))((set Examples_Dest "HB2Work:")(set Param1 (@EO Examples_Dest))(REQUESTWORK)))(if (AND (= WBVer 1) (= media 0) (= n 0) (IN EXAMPLELIST 0))((set Examples_Dest "HB2Work:")
  90. (set Param1 (@EO Examples_Dest))(REQUESTWORK)))(if (AND (= WBVer 1) (= media 0) (<> n 0))((set Examples_Dest @GD)(set Param1 (@EO Examples_Dest))(REQUESTINCLUDES)))(if (IN EXAMPLELIST n)(EXTRACTFILES))(delete param3 (optional "force") (safe))
  91. (set n (+ n 1))))))(PROCEDURE EXTRACTICONS(set Param3 @GE)(if (IN Components 5)((set Space_Dest Icons_Dest)(set param0 "icon files...")(set Param4 "")(ENVARCHIVE)(if (AND (> media 0) (= envarc 0))(set Param1 (@EO HB2_Dest)))(if (= media 0)
  92. (set Param1 ("-aw=HiSoftBasic2:prefs/Env-Archive")))(if (AND (> media 0) (= envarc 1))(set Param1 (@EO Icons_Dest)))(set reqspace 6500)(EXTRACTFILES)(delete @GE (optional "force") (safe)))))(PROCEDURE DOICONCOLORS(if (IN Components 4)(
  93. (if (= WBVer 0)(set walker(askbool(Prompt "\nDo you want to change the look of all the examples icons from" " Workbench 2.0 colors to Workbench 1.3 colors.\n\nPlease note\n\n" " This will take a very long time on floppy disks (10 minutes or more).")
  94. (help "The HiSoft Basic 2 example files are setup for 2.x/3.x machines" " the colors will therefore look wrong on a 1.3 machine, would you like" " the installer to go through and change all the icons from 2.x/3.x colors"
  95. " to 1.3 colors.\n\nWarning\nIt can take a very long time to change all the colors")(choices "Change colors" "Don't change colors")(default 1)))))))(PROCEDURE ICONCOLORS(if (AND (IN Components 0) (IN Components 1) (IN Components 2) (= WBVer 0))(
  96. (set n 0)(while (set ICONFILE (select n "HBC" "ReadMe" "Debug" "Contents" "IFFParse.License" ""))((set n (+ n 1))(tooltype (dest ("%s/%s" HB2_Dest ICONFILE)) (swapcolors))))))(if (AND (IN Components 5) (= WBVer 0))((set n 0)
  97. (while (set ICONFILE (select n "/HBasic" "def_bas" "def_bh" "def_project" "def_tool" "def_prefs" "def_opts" ""))((set n (+ n 1))(if (AND (> media 0) (= envarc 1))(tooltype (dest ("Envarc:HBasic/%s" ICONFILE)) (swapcolors)))(if (= media 0)(
  98. (tooltype (dest ("HiSoftBasic2:Prefs/Env-Archive/HBasic/%s" ICONFILE)) (swapcolors)))))))))(PROCEDURE ICONCOLORS2(if (= WBVer 0)((if (AND (= media 0) (IN Components 3))(REQUESTINCLUDES))(user 0)(if (IN Components 3)((set n 0)
  99. (while (set ICONFILE (select n "Tools" "Tools/FDtoBMAP" "Tools/OtoTaglist" "Tools/ObjEdit" ""))((set n (+ n 1))(if (= (substr BHBMAP_Dest (- (strlen BHBMAP_Dest) 1) ) ":")(tooltype (dest ("%s%s" BHBMAP_Dest ICONFILE)) (swapcolors))
  100. (tooltype (dest ("%s/%s" BHBMAP_Dest ICONFILE)) (swapcolors)))))))(if (> media 0)(if (= (substr Examples_Dest (- (strlen Examples_Dest) 1) ) ":")(tooltype (dest ("%s%s" Examples_Dest "Examples")) (swapcolors))
  101. (tooltype (dest ("%s/%s" Examples_Dest "Examples")) (swapcolors)))(tooltype (dest "HB2Includes:Examples") (swapcolors)))(If (= walker 1)((if (AND (= media 0) (IN Components 4) (IN EXAMPLELIST 0))(REQUESTINCLUDES))(Working @GZ)(if (= Media 0)
  102. (set WALKROOT "HB2Includes:Examples/")(if (= (substr Examples_Dest (- (strlen Examples_Dest) 1) ) ":")(set WALKROOT ("%sExamples/" Examples_Dest))(set WALKROOT ("%s/Examples/" Examples_Dest))))(set WALKPAT @HC)(set WALKACTION 1)(WALK)
  103. (if (AND (= Media 0) (OR (IN EXAMPLELIST 1) (IN EXAMPLELIST 2) (IN EXAMPLELIST 3)))((REQUESTWORK)(Working @GZ)(tooltype (dest "HB2Work:Examples") (swapcolors))(set WALKROOT "HB2Work:Examples/")(set WALKPAT @HC)(set WALKACTION 1)(WALK)))))
  104. (user default-user))))(PROCEDURE REDIRECT(set BHBMAP_Dest @GD)(set HB2_Dest @HF)(set HB2Libs_Dest "HiSoftBasic2:Libs")(set Examples_Dest @GD))(PROCEDURE SETDRIVE(User 2)(set DEFAULTDRIVE 0)(set df0 (getassign "DF0" "d"))
  105. (set df1 (getassign "DF1" "d"))(set df2 (getassign "DF2" "d"))(set df3 (getassign "DF3" "d"))(if (= df0 @HH) ( (set DEFAULTDRIVE "DF0:") (set df0 "")))(if (= df1 @HH) ( (set DEFAULTDRIVE "DF1:") (set df1 "")))
  106. (if (= df2 @HH) ( (set DEFAULTDRIVE "DF2:") (set df2 "")))(if (= df3 @HH) ( (set DEFAULTDRIVE "DF3:") (set df3 "")))(set NDRIVES 0)(if (<> df0 "")((select NDRIVES(set d0 "DF0:")(set d1 "DF0:")(set d2 "DF0:")(set d3 "DF0:"))
  107. (set NDRIVES (+ NDRIVES 1))))(if (<> df1 "")((select NDRIVES(set d0 "DF1:")(set d1 "DF1:")(set d2 "DF1:")(set d3 "DF1:"))(set NDRIVES (+ NDRIVES 1))))(if (<> df2 "")((select NDRIVES(set d0 "DF2:")(set d1 "DF2:")(set d2 "DF2:")(set d3 "DF2:"))
  108. (set NDRIVES (+ NDRIVES 1))))(if (<> df3 "")((select NDRIVES(set d0 "DF3:")(set d1 "DF3:")(set d2 "DF3:")(set d3 "DF3:"))(set NDRIVES (+ NDRIVES 1))))(set XDPROMPT "Select an extra floppy drive you would\nlike to use to speed up the installation")
  109. (select(select NDRIVES(+ 4)(askchoice (prompt XDPROMPT) (help @askchoice-help) (choices d0))(askchoice (prompt XDPROMPT) (help @askchoice-help) (choices d0 d1))(askchoice (prompt XDPROMPT) (help @askchoice-help) (choices d0 d1 d2))
  110. (askchoice (prompt XDPROMPT) (help @askchoice-help) (choices d0 d1 d2 d3)))(set DRIVE d0)(set DRIVE d1)(set DRIVE d2)(set DRIVE d3)(set DRIVE DEFAULTDRIVE))(user default-user))(PROCEDURE FORMAT(user 2)
  111. (Message "\nFloppy disk installation requires\n3 blank disks and" " an Amiga\nWorkbench disk\n\n\n\nPlease have the 3 blank disks\nand the" " Workbench disk ready")(user default-user)(set QUICKFORMAT 0)(if (> default-user 0)(set QUICKFORMAT
  112. (Askchoice(prompt "If you are using preformatted Amiga floppy" " disks would you like to only quick format them?" "\n\nIf you are just overwriting or adding to a previous floppy installation" " you can choose to not format the disks at all")
  113. (help @askchoice-help)(choices "Full format" "Quick format" "Don't format")(default 0))))(if (= QUICKFORMAT 0)(set QUICK "")(set QUICK "quick"))(if (= QUICKFORMAT 0)(set TIME "2 Minutes")(set TIME "20 Seconds"))(user 2)(if (<> QUICKFORMAT 2)(
  114. (set n 0)(while (set DISKNAME (select n @HV "HB2Includes" "HB2Work" ""))((set DISKNUMBER (select n "first" "second" "third" ""))(set DESCRIPTION (select n "boot" "includes" "work" ""))(set n (+ n 1))
  115. (Message ("\nPlease insert the %s blank disk in drive %s - "DISKNUMBER DRIVE) "\n\nWait for the Drive light\n to go off before Proceeding")(Working ("\nFormatting HiSoft Basic 2 %s disk\n\n\n This will take aproximately %s..." DESCRIPTION TIME))
  116. (run "T:Wait 10")(if (= WBVer 1)((Run ("T:format drive %s name %s noicons ffs %s" DRIVE DISKNAME QUICK) (safe))(Run ("T:Install %s ffs" DRIVE) (safe)))((Run ("T:format drive %s name %s noicons %s" DRIVE DISKNAME QUICK) (safe))
  117. (Run ("T:Install %s" DRIVE) (safe))))(message ("\nRemove the disk from %s and label it -\n\n `HiSoft Basic 2 %s'" DRIVE DESCRIPTION))))))(delete "T:Format")(delete @CZ)(delete "T:Wait")(user default-user))(PROCEDURE WORKBENCH(if (<> QUICKFORMAT 2)(
  118. (user 2)(message ("\nPlease insert your Workbench disk in drive %s " DRIVE) "\n\n\n\n Select Proceed to continue")(PROCEDURE SCANDISK(set WBDisk (expandpath DRIVE))(set WBDisk1 (substr WBDisk 0 9))(set WBDisk2 (substr WBDisk 8 9))
  119. (if (OR (= WBDisk1 @IH) (= WBDisk2 "Workbench"))(set WBDisk3 0)(set WBDisk3 1)))(PROCEDURE NOTWBDISK(SCANDISK)(SET TESTDISK 0)(if (= WBDisk3 1)(set TESTDISK(askbool(Prompt "This does not look like a Workbench disk\n\n\nPlease insert an"
  120. (" original (unaltered in any way) Workbench disk in drive %s " DRIVE) "\n\n\n Select Retry to scan the disk or Ignore to carry on regardless")(Help ("The disk you have inserted in drive %s does not look like a" DRIVE)
  121. " Workbench disk to the installer.\n\nPlease insert an original Amiga"(" Workbench disk in drive %s select Retry for the installer to" DRIVE) " scan the disk again.\n\nYou can proceed without a Workbench disk but"
  122. " the disks created may not work correctly and the installation" " may stop due to an incorrect file/directory structure! \n\nIf you" " wish to carry on regardless of the warnings, select Ignore.")(Choices "Retry" "Ignore")))))(NOTWBDISK)
  123. (While (= TESTDISK 1)(NOTWBDISK))(SCANDISK)(user default-user))))(PROCEDURE WBCOPY(if (<> QUICKFORMAT 2)((Makedir "RAM:Boot")(set n 0)(while (set MAKDIR (select n "C" "Devs" "L" "Libs" "S" "System" "Utilities" ""))((set n (+ n 1))
  124. (Makedir (@IT MAKDIR))))(if (= WBVer 1)(Makedir "RAM:Boot/Rexxc"))(Makedir "RAM:Boot/Prefs" (infos))(Makedir @IW (infos))(set n 0)(while (set WBDIR (select n "C" "Devs" "L" "Libs" "S" "System" ""))((set n (+ n 1))((DELETEFILES)
  125. (if (= (exists (tackon WBDisk WBDIR)) 2)(copyfiles(source (tackon WBdisk WBDIR))(dest (@IT WBDIR))(All))))))(if (AND (= WBVer 1) (= (exists (tackon WBDisk @IX)) 2))(copyfiles(source (tackon WBdisk @IX))(dest @IW)(All)))(if (= WBVer 0)(
  126. (if (= (exists (tackon WBDisk "Shell")) 1)(copyfiles(source WBdisk)(dest "RAM:Boot")(Pattern "Shell#?")))(if (= (exists (tackon WBDisk @IY)) 1)(copyfiles(source WBdisk)(dest "RAM:Boot")(Pattern @IY))))))))(PROCEDURE DELETEFILES(set x 0)
  127. (while (set DELETEFILE (select x "Devs/narrator.Device" "Devs/ramdrive.Device" "L/Speak-Handler" "L/CrossDOSFileSystem" "L/FastFileSystem" "libs/AmigaGuide.Library" "libs/bullet.Library" "libs/datatypes.Library"
  128. "Libs/Rexxsupport.Library" "Libs/mathtrans.Library" "Libs/Rexxsyslib.Library" "Libs/Translator.Library" "Libs/mathieeesingtrans.Library" "C/DiskDoctor" "C/Ed" "search" "C/Sort" "C/Join" "C/Lock" "C/Edit"
  129. "C/Relabel" "C/RemRAD" "System/InitPrinter" "System/InitPrinter.Info" "System/RexxMast" "System/RexxMast.Info" "System/FixFonts" "System/FixFonts.Info" "System/MergeMem" "System/MergeMem.Info" "System/NoFastMem" "System/NoFastMem.Info" ""))(
  130. (set x (+ x 1))(if (= (exists (@IT DELETEFILE)) 1)(delete (@IT DELETEFILE) (optional "force") (safe))))))(PROCEDURE COPYWB(if (<> QUICKFORMAT 2)((REQUESTHB2BOOT)(copyfiles(source @JX)(dest "HiSoftBasic2:")(All))(if (= WBVer 1)
  131. (makedir "HiSoftBasic2:WBStartup" (infos)))(makedir "HiSoftBasic2:T")(if (= (exists "RAM:Boot") 2)((set WALKROOT @JX)(set WALKACTION 0)(set WALKPAT "#?")(WALK)(Delete "RAM:Boot"))))))(PROCEDURE BUILDER
  132. (if (AND (IN Components 0) (IN Components 1) (IN Components 2))(set config(askbool(prompt "\n\nDo you want run the configuration file builder\n\nSee Help for further details?")(help "The configuration file builder will configure your system"
  133. " for the installed software, some of the things it will do are," " add items to user-startups (paths & assigns etc.) and" " create default configuration files for the compiler and editor,"
  134. " so you can instantly run the package without having to configure anything." "\n\nIf you are using Workbench 1.3 on a hard disk, the builder" " will create a 2.0 style ENVARC: in SYS:Prefs/Env-Archive - it will only"
  135. " do this if ENVARC: does not exist.\n\nIf you are using a 1.3 machine" " with floppy disks you must run the builder if you want icons to appear for" " your compiled programs.\n\nIf you are still using Workbench 1.3 we would recommend"
  136. " that you consider upgrading your operating system to obtain the maximum" " from the HiSoft Basic 2 package.")(choices "Run builder" "Don't run builder")(default 1)))(set config 0)))(PROCEDURE CONFIGFILES(User 0)(set HBCOPTIONS(cat "ARRAY\n"
  137. "STACK\n" "BREAK\n" "EVENT\n" "OVERFLOW\n" "AUTODIM\n" "UNDERLINES\n" "ADDICON\n" "ERRORS\n" "LINES\n"))(if (AND (= config 1) (= Media 0) (= WBVer 0))((Working "Building config files for a\n\n1.3 floppy drive setup")(textfile(dest @KU)(Append @KV @KW
  138. @KX ";If you have an extra disk drive attached un-comment the 3 lines below\n" ";Assign BH: HB2Includes:BH\n" ";Assign BMAP: HB2Includes:BMAP\n" ";Assign HB2EXAMPLES: HB2Includes:Examples\n"
  139. ";If you have more than one extra (3 drives or more) drive attached un-comment the line below\n" ";Assign WORK: HB2Work:\n" @LD))(Set PATCHFILE "RAM:Patchfile")(set FILETOBEPATCHED "HiSoftBasic2:S/Startup-Sequence")(PATCHER)(textfile(dest (@LG))
  140. (Append (cat @LH @LI)))(textfile(dest (@LJ))(Append (HBCOPTIONS) @LK @LL))))(if (AND (= config 1) (> Media 0) (= WBVer 0))((Working "Building config files for a\n\n1.3 hard disk setup")(if (= envarc 0)((if (= (exists @LN) 0)(Makedir @LN (safe)))
  141. (Makeassign "Envarc" "SYS:Prefs/Env-Archive" (safe))(startup "EnvArc"(Prompt "Place Env-Archive paths/assigns in user-startup")(help @startup-help)(Command @LP) @LQ "copy ENVARC: Ram:Env all quiet\n")))(startup @HV(Prompt @LS)(help @startup-help)
  142. (Command (@LT HB2_Dest) @KX(@LU BHBMAP_Dest)(@LV BHBMAP_Dest)))(textfile(dest (@LW HB2_Dest))(Append @LX @LY))(textfile(dest (@LZ HB2_Dest))(Append (HBCOPTIONS) @M@ @MA))))(if (AND (= config 1) (= Media 0) (= WBVer 1))(
  143. (Working "Building config files for a\n\n2.x/3.x floppy disk setup")(textfile(Append @KV @KW @KX "Assign BH: HB2Includes:BH defer\n" "Assign BMAP: HB2Includes:BMAP defer\n" "Assign WORK: HB2Work: defer\n" @LD)(dest @KU))(textfile(dest (@LG))
  144. (Append @LH @LI))(textfile(dest (@LJ))(Append (HBCOPTIONS) @LK @LL))))(if (AND (= config 1) (> Media 0) (= WBVer 1))((Working "Building config files for a\n\n2.x/3.x hard disk setup")(startup "HBasic2"(Prompt @LS)(help @startup-help)
  145. (Command (@LT HB2_Dest) @KX(@LU BHBMAP_Dest)(@LV BHBMAP_Dest)))(textfile(dest (@LW HB2_Dest))(Append @LX @LY))(textfile(dest (@LZ HB2_Dest))(Append (HBCOPTIONS) @M@ @MA))))(User default-user))(PROCEDURE PATCHER(textfile(dest ("%s" PATCHFILE))
  146. (Append "M1; F/LoadWB/; I\n")(Append @LP)(Append @LQ)(Append "copy ENVARC: Ram:Env all quiet\n\n")(Append "IF EXISTS S:User-Startup\n")(Append "   Execute S:User-Startup\n")(Append "EndIF\n\n")(Append "Z\n"))
  147. (rename FILETOBEPATCHED (cat FILETOBEPATCHED ".bak"))(Run ("T:Edit from %s.bak with %s to %s" FILETOBEPATCHED PATCHFILE FILETOBEPATCHED))(delete PATCHFILE))(PROCEDURE REQUESTINSTALL(askdisk
  148. (Prompt "\n\nPlease insert the HiSoft Basic 2\n\ninstallation disk in any drive")(help @askdisk-help)(dest "HB2Install")))(PROCEDURE REQUESTHB2BOOT(askdisk(Prompt "\n\nPlease insert the disk you labelled\n\nHiSoft Basic 2 boot" @MP)
  149. (help @askdisk-help)(dest @HV)))(PROCEDURE REQUESTINCLUDES(askdisk(Prompt "\n\nPlease insert the disk you labelled\n\nHiSoft Basic 2 includes" @MP)(help @askdisk-help)(dest @HW)))(PROCEDURE REQUESTWORK(askdisk
  150. (Prompt "\n\nPlease insert the disk you labelled\n\nHiSoft Basic 2 work" @MP)(help @askdisk-help)(dest "HB2Work")))(Procedure BYE(user 2)(Message "Installation complete. Please reboot before running HiSoft Basic 2."
  151. "\nTo obtain your 30 days free technical support and notification of" " HiSoft Basic 2 updates, please complete your registration card and return" " it to:-\n\n" "            North America          Rest of world    \n"
  152. "           Oregon Research            HiSoft        \n" "      16200 SW Pacific Highway    The Old School    \n" "             Suite 162              Greenfield      \n" "              Tigard                Bedford, UK     \n"
  153. "             OR 97223                MK45 5DE       \n" "Phone:    +1 503 620 4919         +44 525 718181    \n" " FAX:     +1 503 624 2940         +44 525 713716    \n")(Message "Please remember, UK technical support is\n between 2-3p.m."
  154. " Mon-Fri\nIf you need technical support, please remember to have when you" " phone, your:-\nSerial Number\nSoftware version number\nMachine" " configuration (RAM,Processor,Hard disk etc.)\n\n Please also have a"
  155. " clear and concise description of the problem you are having to ensure" " that we can deal with your problem as quickly as possible.\n\n" " Select Proceed to quit to Workbench")(if (AND (= WBVer 1) (= (exists "SYS:Utilities/Multiview") 1))
  156. (Run "Run SYS:Utilities/Multiview HB2Install:ReadMe" (safe))(Run "Run HB2Install:Utilities/More HB2Install:ReadMe" (safe)))(Exit (quiet)))(PROCEDURE WALK(procedure WalkDown(select WALKACTION("")(tooltype (dest CURRENTNAME) (swapcolors))))
  157. (procedure WalkUp(select WALKACTION(delete CURRENTNAME (optional "force") (safe))("")))(set EN0 WALKROOT)(foreach EN0 WALKPAT((set EN1 (cat EN0 @each-name))(set CURRENTNAME EN1)(WalkDown)(if (= @each-type 2)((foreach EN1 WALKPAT
  158. ((set EN2 (cat EN1 "/" @each-name))(set CURRENTNAME EN2)(WalkDown)(if (= @each-type 2)((foreach EN2 WALKPAT((set EN3 (cat EN2 "/" @each-name))(set CURRENTNAME EN3)(WalkDown)(if (= @each-type 2)((foreach EN3 WALKPAT((set EN4 (cat EN3 "/" @each-name))
  159. (set CURRENTNAME EN4)(WalkDown)(if (= @each-type 2)((foreach EN4 WALKPAT((set EN5 (cat EN4 "/" @each-name))(set CURRENTNAME EN5)(WalkDown)(set CURRENTNAME EN5)(WalkUp)))))(set CURRENTNAME EN4)(WalkUp)))))(set CURRENTNAME EN3)(WalkUp)))))
  160. (set CURRENTNAME EN2)(WalkUp)))))(set CURRENTNAME EN1)(WalkUp))))(PROCEDURE CLEANUP(set n 0)(while (set ARCHIVECLEANUP (select n "HB2Programs.Lha" "HB2Examples1.3.Lha" @DX "HB2Examples2.1.Lha" "HB2Examples3.0.Lha"
  161. "HB2Includes.Lha" "HB2Icons.Lha" "Patchfile" ""))((set n (+ n 1))(if (= (exists ("RAM:%s" ARCHIVECLEANUP)) 1)(Delete ("RAM:%s" ARCHIVECLEANUP) (optional "force") (safe)))))(if (= (exists "RAM:Boot") 2)((set WALKROOT @JX)(set WALKACTION 0)
  162. (set WALKPAT "#?")(WALK)(Delete "RAM:Boot")))(set n 0)(while (set TOOLSCLEANUP (select n "Wait" "Lhex" "Edit" "Install2.0" "Install1.3" "Install" "Format" "Format2.0" "Format1.3" ""))((set n (+ n 1))(if (= (exists ("T:%s" TOOLSCLEANUP)) 1)
  163. (Delete ("T:%s" TOOLSCLEANUP) (optional "force") (safe))))))(MEDIA)(INTRODUCTION)(Complete 0)(if (> media 0)((ENVARCHIVE)(PARTS)(EXAMPLECHOICE)(CHECKASL)(CHECKIFF)(CHECKHB2LIB)(BUILDER)(DOICONCOLORS)(LOCATIONS)(COPYTOOLS)(LHACOPY1)(Complete 20)
  164. (EXTRACTPROGRAMS)(Complete 40)(LHACOPY2)(EXTRACTINCLUDES)(Complete 60)(EXTRACTEXAMPLES)(Complete 85)(CONFIGFILES)(Complete 95)(EXTRACTICONS)(ICONCOLORS)(ICONCOLORS2)))(if (OR (= media 0) (= Media 2))((Set Media 0)(Complete 0)(PARTS)(EXAMPLECHOICE)
  165. (BUILDER)(COPYTOOLS)(REDIRECT)(SETDRIVE)(Complete 5)(FORMAT)(Complete 20)(WORKBENCH)(WBCOPY)(Complete 25)(DELETEFILES)(CHECKASL)(CHECKIFF)(COPYWB)(Complete 35)(LHACOPY1)(Complete 40)(REQUESTHB2BOOT)(if (<> (exists @HF) 2)(makedir HB2_Dest (infos)))
  166. (EXTRACTPROGRAMS)(Complete 50)(EXTRACTICONS)(ICONCOLORS)(CONFIGFILES)(Complete 55)(LHACOPY2)(EXTRACTINCLUDES)(Complete 75)(EXTRACTEXAMPLES)(Complete 95)(DOICONCOLORS)(ICONCOLORS2)))(CLEANUP)(Complete 100)(REQUESTINSTALL)(BYE) 
  167.